home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / bsd / sys / ttychars.h < prev    next >
C/C++ Source or Header  |  1995-02-14  |  2KB  |  62 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1987 Carnegie-Mellon University
  4.  * All rights reserved.  The CMU software License Agreement specifies
  5.  * the terms and conditions for use and redistribution.
  6.  */
  7. /*
  8.  * HISTORY
  9.  * 27-Feb-88  John Seamons (jks) at NeXT
  10.  *    Changed macros to conform to ANSI C.
  11.  */
  12. /*
  13.  * Copyright (c) 1982, 1986 Regents of the University of California.
  14.  * All rights reserved.  The Berkeley software License Agreement
  15.  * specifies the terms and conditions for redistribution.
  16.  *
  17.  *    @(#)ttychars.h    7.1 (Berkeley) 6/4/86
  18.  */
  19.  
  20. /*
  21.  * User visible structures and constants
  22.  * related to terminal handling.
  23.  */
  24. #ifndef _TTYCHARS_
  25. #define    _TTYCHARS_
  26. struct ttychars {
  27.     char    tc_erase;    /* erase last character */
  28.     char    tc_kill;    /* erase entire line */
  29.     char    tc_intrc;    /* interrupt */
  30.     char    tc_quitc;    /* quit */
  31.     char    tc_startc;    /* start output */
  32.     char    tc_stopc;    /* stop output */
  33.     char    tc_eofc;    /* end-of-file */
  34.     char    tc_brkc;    /* input delimiter (like nl) */
  35.     char    tc_suspc;    /* stop process signal */
  36.     char    tc_dsuspc;    /* delayed stop process signal */
  37.     char    tc_rprntc;    /* reprint line */
  38.     char    tc_flushc;    /* flush output (toggles) */
  39.     char    tc_werasc;    /* word erase */
  40.     char    tc_lnextc;    /* literal next character */
  41. };
  42.  
  43. #define    CTRL(c)    ((c)&037)
  44.  
  45. /* default special characters */
  46. #define    CERASE    0177
  47. #define    CKILL    CTRL('u')
  48. #define    CINTR    CTRL('c')
  49. #define    CQUIT    034        /* FS, ^\ */
  50. #define    CSTART    CTRL('q')
  51. #define    CSTOP    CTRL('s')
  52. #define    CEOF    CTRL('d')
  53. #define    CEOT    CEOF
  54. #define    CBRK    0377
  55. #define    CSUSP    CTRL('z')
  56. #define    CDSUSP    CTRL('y')
  57. #define    CRPRNT    CTRL('r')
  58. #define    CFLUSH    CTRL('o')
  59. #define    CWERASE    CTRL('w')
  60. #define    CLNEXT    CTRL('v')
  61. #endif
  62.